package com.xiaomaoguai.mybatis.model;

import javax.persistence.*;

@Table(name = "adqm_role_resource")
public class AdqmRoleResource {
    /**
     * 角色ID
     */
    @Id
    @Column(name = "ROLE_ID")
    private Integer roleId;

    /**
     * 资源ID
     */
    @Id
    @Column(name = "RESOURCE_ID")
    private Integer resourceId;

    /**
     * 排序
     */
    @Column(name = "ORDER_INDEX")
    private Short orderIndex;

    /**
     * 获取角色ID
     *
     * @return ROLE_ID - 角色ID
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * 设置角色ID
     *
     * @param roleId 角色ID
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取资源ID
     *
     * @return RESOURCE_ID - 资源ID
     */
    public Integer getResourceId() {
        return resourceId;
    }

    /**
     * 设置资源ID
     *
     * @param resourceId 资源ID
     */
    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * 获取排序
     *
     * @return ORDER_INDEX - 排序
     */
    public Short getOrderIndex() {
        return orderIndex;
    }

    /**
     * 设置排序
     *
     * @param orderIndex 排序
     */
    public void setOrderIndex(Short orderIndex) {
        this.orderIndex = orderIndex;
    }
}